<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录页面</title>
</head>
${message}
${no}
${boss}
<body>
<form action="loginServlet">
    <!--使用隐藏域提交方式-->
    <input type="hidden" name="action" value="login">
    用户名：<input type="text" name="id"> <br>
    密码：&nbsp;&nbsp;&nbsp;<input type="text" name="password"> <br>
    验证码：<input type="text" name="verify"> <br>
    <img id="verifyImg" src="verifyImg" alt="" onclick="getVerify()"> <br>
    <input type="submit">
    <script>
        function getVerify() {
            //加入点击更换验证码，注意每次更改的src必须不同，浏览器才会发出请求，所以后边拼写了随机数
            document.querySelector("#verifyImg").src = "verifyImg?number="+Math.random();
        }
    </script>

</form>
</body>
</html>